<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>System configuration</title>
</head>
<body>
<a href="${pageContext.servletContext.contextPath}">home</a><br>
<form:form action="${pageContext.servletContext.contextPath}/config/handler" method="post"
           modelAttribute="systemConfiguration">
    Default bot type:
    <form:select path="botType">
        <form:option value="EASY" label="Easy Bot"/>
        <form:option value="MEDIUM" label="Medium Bot"/>
        <form:option value="HARD" label="Hard Bot"/>
    </form:select><br>
    GameName: <form:input type="text" path="gameName" size="20"/>
    UserName: <form:input type="text" path="userName" size="20"/>
    Number of Cards: <form:input type="text" path="numberOfCards" size="20"/>
    Round timeout: <form:input type="text" path="gameTimeOut" size="20"/>
    <br><br>
    <form:button name="action" value="get">get</form:button>
    <form:button name="action" value="set">set</form:button>
    <form:button name="action" value="load">load</form:button>
    <form:button name="action" value="save">save</form:button>
</form:form>
</body>
</html>